import React from 'react';
import ReactDOM from 'react-dom/client';
import MainRouter from "./views/router";
import './styles/initialization.scss';
// antd全局样式
import 'antd/dist/antd.css';
// antd中文包
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import {ConfigProvider} from 'antd';
// mbox
import {Provider} from 'mobx-react';
import store from "./mobx/store";


const root = ReactDOM.createRoot(
    document.getElementById('root') as HTMLElement
);

root.render(
    // ReactDOMServer.renderToString()
    // <React.StrictMode>
    <Provider {...store} >
        <ConfigProvider locale={zh_CN}>
            <MainRouter/> {/* 主路由 */}
        </ConfigProvider>
    </Provider>
    // </React.StrictMode>
);
